HAL JPEG migration: list of applicable concepts ¶
This section provides information about the HAL JPEG architecture concepts relevant to STM32 HAL1 to HAL2 migration.
Concepts for JPEG ¶
|
Concept |
Description |
|---|---|
|
The initialization has been split into separate init and config functions:
|
|
|
Removal and conversion of init structure to configuration structure |
The init structure
|
|
The handle structure has been renamed to
|
|
|
The structure
|
|
|
|
|
|
The
|
|
|
Two functions to set/get user data are available:
|
|
|
Individual callback registration APIs replace global register and unregister functions |
The registration of callbacks for JPEG events is managed by dedicated functions. Each function is responsible for registering callback functions for specific JPEG events. |
|
All public macros have been removed from the HAL JPEG driver and replaced with static inline APIs. |
|
|
The JPEG has now been managed by two states :
|
|
|
The HAL JPEG functions were updated to return:
|
|
|
The error handling mechanisms within the HAL have been redesigned to enhance the detection, reporting, and management of errors. |
|
|
All underscore prefixes in JPEG have been removed. |
|
|
All TypeDef parts in JPEG have been removed and replaced by
|
|
|
The
|
|
|
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels. |
Finite parameters (including JPEG instances) have been converted into enumerated types (enums) at the HAL level. This improves code readability, maintainability, and type safety. |
|
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions). |
All HAL JPEG functions start with
|